package com.hdw.med.api;

import com.hdw.common.base.BaseException;
import com.hdw.common.base.BaseResult;
import com.hdw.med.bean.vo.AlterTableParamVO;

public interface CommonTableDDLService {
    /**
     * 根据元数据修改表
     *
     * @return
     */
    boolean alterTableByMed(AlterTableParamVO paramVO) throws BaseException;

    boolean alterTableByMedOtherDB(AlterTableParamVO paramVO, String DataSourceId) throws BaseException;

    /**
     * 根据元数据删除表
     *
     * @return
     */
    BaseResult dropTableByMed(String cdTb, Long idTblog);

    BaseResult dropTableByMedOtherDB(String cdTb, Long idTblog, String DataSourceId);

    BaseResult execDDLSQL(String sqls, String dataSourceName) throws BaseException;


}
